package com.redfisky.ssoj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan(basePackages = "com.redfisky.ssoj.dao")
public class SsojApplication {

    public static void main(String[] args) {
        SpringApplication.run(SsojApplication.class, args);
    }

}

/*POSTMAN测试 授权码模式 先去拿code 再去拿token; 经测试可以拿到，以下是JSON返回结果。 Controller懒得写了……*/
/*{
    "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NDg2MTA4MTcsInVzZXJfbmFtZSI6ImFhYSIsImp0aSI6IjYxN2MwN2E1LTY0MDMtNGE5NC05Y2ZlLTAxZGQ2Mzg3OWMyYiIsImNsaWVudF9pZCI6ImNsaWVudElkIiwic2NvcGUiOlsidGVzdCJdfQ.5LTunnTuUV1JaOm31jR-9Z_5MBm_KNl0nNnAJ7TKh5g",
    "token_type": "bearer",
    "refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1NTExNTk2MTcsInVzZXJfbmFtZSI6ImFhYSIsImp0aSI6IjUzZDViNzVjLTUzNTEtNDkxMy04ZDk1LTFmZjljZmI2OWMzNCIsImNsaWVudF9pZCI6ImNsaWVudElkIiwic2NvcGUiOlsidGVzdCJdLCJhdGkiOiI2MTdjMDdhNS02NDAzLTRhOTQtOWNmZS0wMWRkNjM4NzljMmIifQ.mrYChmWVEKQaWA9M840tBN30xOD0qcso4SDSNFir7H4",
    "expires_in": 43199,
    "scope": "test",
    "jti": "617c07a5-6403-4a94-9cfe-01dd63879c2b"
}*/
/*还是挺好玩的，内容也多，还需要多看进阶配置；默认的code好像很快就过期了，应该可以配置的。*/